<template>
  <div>
    <div class="star">
      <div class="star-p">
        <i class="iconfont icon-zuo" @click="fanhui2()"></i>
        <p>明星用户</p>
      </div>

      <div class="star2">
        <div>
          <div @click="mingx()">明星723</div>
          <div class="border1 yun" ref="yunq1"></div>
        </div>
        <div>
          <div @click="star2()">DJ305</div>
          <div class="border1 yun2" ref="yunq2"></div>
        </div>
      </div>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  methods: {
    mingx() {
      this.$router.push("/mingx");
      this.$refs.yunq1.style.display = "block";
      this.$refs.yunq2.style.display = "none";
    },
    star2() {
      this.$router.push("/mingx2");
      this.$refs.yunq2.style.display = "block";
      this.$refs.yunq1.style.display = "none";
    },
    fanhui2() {
      this.$router.go(-1);
    },
  },
};
</script>

<style scoped>
.star-p {
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  height: 1.07rem;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
}
p {
  margin-left: 0.3rem;
  font-size: 0.3rem;
}
.icon-zuo {
  font-size: 0.4rem;
}
.star2 {
  display: flex;
  justify-content: space-around;
  font-size: 0.25rem;
}
.border1 {
  width: 0.84rem;
  height: 0.13rem;
  border-radius: 0.05rem;
  background-color: #fe4b49;
  display: inline-block;
}
.yun2 {
  display: none;
}
</style>